fast-read-process-output: Make safer
authorDmitry Gutov <dmitry@gutov.dev>
Tue, 11 Jun 2024 02:54:57 +0000 (05:54 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Tue, 11 Jun 2024 02:54:57 +0000 (05:54 +0300)
commitbac8a70f454d022d8352200d85eacd27017d4f12
treee420c7d4dbf077807123d0a4a7f61749c87949ed
parentd9890bb87063b402853ff0e4ea8bbfc92e5d6e00
fast-read-process-output: Make safer

* src/process.c (read_process_output): Move the call to
'read_and_insert_process_output' from here.
(read_and_dispose_of_process_output): To here (bug#66020).  So
that any Lisp code invoked through modification hook from the
former function also benefit from safety guards like
running_asynch_code, saved match data, inhibit_quot, etc.
src/process.c